package org.rugby.online.impl;

import org.rugby.online.core.economy.RboTransferDescription;
import org.rugby.online.core.economy.RboTransferType;

public class DefaultTransferDescription extends DefaultObject implements RboTransferDescription {

	/**
	 * Serial number
	 */
	private static final long serialVersionUID = -8518994703514102637L;

	private long sourceId;
	private long targetId;
	private int amount;
	private RboTransferType type;
	private int season;
	
	/**
	 * Constructor
	 * @param s the source ID
	 * @param t the target ID
	 * @param a the amount of the transfer
	 * @param se the season when it occurred
	 * @param ty the type of transfer
	 */
	public DefaultTransferDescription(long s, long t, int a, int se, RboTransferType ty) {
		super();
		sourceId = s;
		targetId = t;
		amount = a;
		season = se;
		type = ty;
	}
	
	@Override
	public long getSourceId() {
		return sourceId;
	}

	@Override
	public long getTargetId() {
		return targetId;
	}

	@Override
	public int getAmount() {
		return amount;
	}

	@Override
	public RboTransferType getTransferType() {
		return type;
	}

	@Override
	public int getSeason() {
		return season;
	}

}
